<input hidden="hidden" id="navValue" value="股东列表">

<div class="page-content">
    <div class="page-header">
        <h1>
            股东管理
            <small>
                <i class="ace-icon fa fa-angle-double-right"></i>
                股份详情
            </small>
        </h1>
    </div><!-- /.page-header -->

    <div class="row">
        <form class="form-horizontal" role="form" action="getDetail" method="get">
            <div class="form-group">
                <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 搜索用户: </label>

                <div class="col-sm-8">
                    <input type="text" id="searchPhone" name = "searchPhone" placeholder="手机号" class="col-xs-10 col-sm-5" style="margin-right: 30px;"  value={:input('get.phone')}>
                    <button id="searchBtn" type="submit" class="dt-button buttons-collection buttons-colvis btn btn-white btn-primary btn-bold" tabindex="0" aria-controls="dynamic-table" data-original-title="" title="搜索"><span><i class="fa fa-search bigger-110 blue"></i></span></button>
                </div>
            </div>
        </form>
            <div class="row">
                <div class="col-xs-12">
                    <table id="simple-table" class="table  table-bordered table-hover">
                        <thead>
                        <tr>
                            <th class="center">日期</th>
                            <th class="center">数量（单位：股）</th>
<!--                            <th class="center">方式</th>-->
                            <th class="center">备注</th>
                        </tr>
                        </thead>
                        {volist name='allLogs' id='log'}
                        <tbody>
                        <tr  class="center">
                            <td>
                                {$log['update_time']}
                            </td>
                            <td>
                                {$log['num']}
                            </td>
                            <td>
                                {$type[$log['type']]}
                            </td>
                           <!-- <td>
                                {//$log['note']}
                            </td>-->
                        </tr>
                        </tbody>
                        {/volist}
                    </table>
                </div><!-- /.span -->
            </div><!-- /.row -->

        <div class="center form-horizontal col-md-offset-3 col-md-9" id="tips" style="display: none;color: red;">
        </div>

    </div><!-- /.row -->
</div>

<script>
    $("#searchBtn").click(function () {
        $('.user-data').hide();
        $('#tips').hide();
        var phone = $('#searchPhone').val();
        if(phone == ''){
            alert('请输入手机号');
        }else{
            if(!/^[1][0-9]{10}$/.test(phone)){
                alert('请输入正确手机号');
            }else{
                return true;
            }
        }
        return false;
    })
</script>